package demo.bean;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.stu.utils.excel.LocalDateConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @Classname KzzJcGgExcelModel
 * @Version 1.0.0
 * @Date 2022/2/24 13:36
 * @Created by yd
 */
@Getter
@Setter
@EqualsAndHashCode
@ApiModel(value = "减持公告导出Excel javaBean")
@ColumnWidth(12)
@HeadRowHeight(15)
public class KzzJcGgExcelModel implements Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty("正骨")
    @ExcelProperty("股票名称")
    private String secName;

    @ExcelProperty("股票代码")
    @ApiModelProperty("正骨CODE")
    private String secCode;

    @ApiModelProperty("交易所")
    private String jys;

    @ExcelProperty(value = "公告时间", converter = LocalDateConverter.class)
    @ApiModelProperty("减持时间")
    private LocalDate jcDate;

    @ExcelProperty("可转债代码")
    @ApiModelProperty("可转债CODE")
    private String kzzCode;

    @ExcelProperty("可转债名称")
    @ApiModelProperty("可转债-name")
    private String kzzName;

    ///////////////////
    @ExcelProperty("持有人")
    @ApiModelProperty("持有人")
    @ColumnWidth(35)
    private String cyr;

    @ExcelProperty("持有数量")
    @ApiModelProperty("持有数量")
    private String cySl;

    @ExcelProperty("持有占发行量比例(%)")
    @ApiModelProperty("持有占发行量比例")
    private String cyZb;

    @ExcelProperty("减持数量")
    @ApiModelProperty("减持数量")
    private String jcNum;

    @ExcelProperty("减持后数量")
    @ApiModelProperty("减持后数量")
    private String jchSl;

    @ExcelProperty("减持后占发行量比(%)")
    @ApiModelProperty("减持后占比")
    private String jchZb;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.DEFAULT_STYLE);
    }
}
